﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:29
// 负责人：lvsc
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{
	
	/// <summary>
	///订单费用 扩展
	/// </summary>
	public partial class NetWorkFeeConfigOperate
	{
        /// <summary>
    	/// 根据断言条件获取单个订单费用
    	/// </summary>
        public static NetWorkFeeConfigInfo QuerySingle(Expression<Func<NetWorkFeeConfigInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }
        
        /// <summary>
    	/// 根据断言条件获获取订单费用列表
    	/// </summary>
        public static IList<NetWorkFeeConfigInfo> QueryList(Expression<Func<NetWorkFeeConfigInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 根据城市和业务获取价格
        /// </summary>
        /// <param name="citId"></param>
        /// <param name="bizTypeId"></param>
        /// <returns></returns>
        public static List<NetWorkFeeConfigInfo> GetFeeConfigs(int citId, int bizTypeId)
        {
            return dal.GetFeeConfigs(citId,bizTypeId);
        }

        /// <summary>
        /// 批量取消价格配置
        /// </summary>
        /// <param name="feeConfigIds"></param>
        /// <returns></returns>
        public static bool BatchCancelFeeConfigByIds(List<int> feeConfigIds, int cityId, int bizTypeId,int updateUserId)
        {
            return dal.BatchCancelFeeConfigByIds(feeConfigIds, cityId, bizTypeId, updateUserId);
        }

    }
}